<template>
    <div class="midcontent">
        <div class="mid_bg_box">
          <div v-for="item in list">
            <router-link :to="item.url">
              {{item.name}}
            </router-link>
          </div>
        </div>
    </div>
</template>

<script>
    export default {
        data () {
            return {
              list:[{name:"新闻",url:"/news"},
                {name:"财经",url:"/money"},
                {name:"娱乐",url:"/happy"},
                {name:"体育",url:"/sport"},
                {name:"更多",url:"/more"},
                {name:"军事",url:"/soldier"},
                {name:"NBA",url:"/nba"},
                {name:"应用",url:"/app"},
                {name:"科技",url:"/sci"},
                {name:"星座",url:"/xz"}]
            }
        },

    }
</script>

<style>
  .midcontent{
    width: 100%;
    height: 400px;
  }
  .mid_bg_box{
    width: 100%;
  }
  .mid_bg_box div{
    width: 33.3%;
    background-color:#4998e7;
    height: 100px;
    border: 1px solid white;
    float: left;
    text-align: center;
    line-height: 100px;
    color: white;
    font-size: 20px;
  }
  .mid_bg_box a{
    color: white;
  }
</style>
